<?xml version="1.0" encoding="windows-1250"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 <xsl:output method="text"/>

 <xsl:template match="/">
  <xsl:text>Méně častá písmena v českém textu : </xsl:text>
   <xsl:apply-templates/>
 </xsl:template>

 <xsl:template match="abeceda/*">
  <xsl:choose>
   <xsl:when test=".='W'or .='Q'">
    <xsl:value-of select="."/>
   </xsl:when>
   <xsl:otherwise>
    <xsl:text>*</xsl:text>
   </xsl:otherwise>
  </xsl:choose>
 </xsl:template>

</xsl:stylesheet>